<template>
	<view>
		<all-chart :option="option" width="100%"></all-Chart>
		<div class="w-100% h-100% overflow-auto p-20rpx">
	<!-- 	  <button @click="goToChart">查看图表</button> -->
		</div>
	</view>
	
</template>

<script>
	import allChart from '@/components/allChart.vue';

	export default {
		components: {
			allChart
		},

		data() {
			return {
				option : {
				  xAxis: {
				    type: 'category',
				    data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
				  },
				  yAxis: {
				    type: 'value'
				  },
				  series: [
				    {
				      data: [150, 230, 224, 218, 135, 147, 260],
				      type: 'line'
				    }
				  ]
				}
				
					
			}
		}
	,
	methods:{
		
		 goToChart () {
		  uni.navigateTo({
		    url: '/pages/echarts/chart/index'
		  })
		}
		
	}
	
	}
</script>
